<div id="center_tieude">
    <img src="../../Picture/admin.ico"/>
    <h3>Cập Nhật Tài Khoản</h3>        
</div> <!--end id center_tieude-->

<div class="themmoi">
<?php
	$arr=dangnhap::GetByID($_GET['id']);
	for($i=0;$i<count($arr);$i++)
	{
?>
<form action="" method="post">
	<table>
    	<tr>
        	<td align="right" >Tên đăng nhập<span style="color:red"></span></td>
            <td align="left"><input type="text" name="tdn" disabled="disabled" value="<?php echo $_GET['id'];?>"></td>
        </tr>
    	<tr>
        	<td align="right" >Mật khẩu<span style="color:red">(*)</span></td>
            <td align="left"><input type="password" name="pss" value="<?php echo $arr[$i]->matkhau;?>" /></td>
        </tr>
        <tr>
        	<td align="right" >Nhập lại mật khẩu<span style="color:red">(*)</span></td>
            <td align="left"><input type="password" name="pss_r" value="<?php echo $arr[$i]->matkhau;?>" /></td>
        </tr>
    	<tr>
        	<td align="right" >Quyền<span style="color:red">(*)</span></td>
            <td align="left">
            	<select style="margin-left:3px;width:153px; margin-top:5px;" name="quyen">
                	<?php
						if($arr[$i]->quyen==1)
							echo '<option value="1" hidden="1">Admin</option>';
						if($arr[$i]->quyen==2)
							echo '<option value="2" hidden="1">Khách hàng</option>';
					?>
                	<option value="1">Admin</option>
                    <option value="2">Khách Hàng</option>
                </select>
            </td>
        </tr>
    	<tr>
        	<td align="right" >Active<span style="color:red">(*)</span></td>
            <td align="left">
            	<select style="margin-left:3px; width:153px; margin-top:-5px;" name="active">
                	<?php
						if($arr[$i]->active==1)
							echo '<option value="1" hidden="1">Actived</option>';
						if($arr[$i]->active==0)
							echo '<option value="0" hidden="1">Banned</option>';
					?>
                	<option value="1">Actived</option>
                    <option value="0">Banned</option>
                </select>
            </td>        
        </tr>
        <tr>
        	<td></td>
        	<td >
            	<input  type="submit" name="capnhattaikhoan" value="Cập nhật">
                <input  type="submit" name="nhaplaitaikhoan" value="Nhập lại">
            	<input  type="submit" name="resetmk" value="Reset mật khẩu">
            	
            </td>
        </tr>
    </table>
</form>
<?php
	}
?>

</div>